package com.battery.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.sql.Timestamp;

@ApiModel(description = "用户类")
public class User {
    @ApiModelProperty(name = "user_id", value = "用户id",required = true,example = "123")
    private int user_id;

    @ApiModelProperty(name = "user_name", value = "用户名称", example = "")
    private String user_name;

    @ApiModelProperty(name = "user_status", value = "用户是否是会员", example = "123")
    private int user_status;

    @ApiModelProperty(name = "user_avatar", value = "用户头像", example = "")
    private String user_avatar;

    @ApiModelProperty(name = "user_sex", value = "用户性别", example = "")
    private String user_sex;

    @ApiModelProperty(name = "user_create_time", value = "用户创建时间", example = "")
    private Timestamp user_create_time;

    @ApiModelProperty(name = "user_dead_line", value = "用户会员到期时间", example = "")
    private Timestamp user_dead_line;

    @ApiModelProperty(name = "user_deposit", value = "用户押金", example = "123")
    private double user_deposit;

    @ApiModelProperty(name = "user_ID_number", value = "用户身份证号", example = "")
    private String user_ID_number;

    @ApiModelProperty(name = "free_time", value = "用户免费试用时间", example = "123")
    private int free_time;

    public User(int i, String 张三, int i1, String s, String 男, Timestamp create_time, Timestamp dead_line, double v, String s1) {}

    public User(int user_id, String user_name, int user_status, String user_avatar, String user_sex,
                Timestamp user_create_time, Timestamp user_dead_line, double user_deposit, String user_ID_number, int free_time) {
        this.user_id = user_id;
        this.user_name = user_name;
        this.user_status = user_status;
        this.user_avatar = user_avatar;
        this.user_sex = user_sex;
        this.user_create_time = user_create_time;
        this.user_dead_line = user_dead_line;
        this.user_deposit = user_deposit;
        this.user_ID_number = user_ID_number;
        this.free_time = free_time;
    }

    @Override
    public String toString() {
        return "User{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", user_status=" + user_status +
                ", user_avatar='" + user_avatar + '\'' +
                ", user_sex='" + user_sex + '\'' +
                ", user_create_time=" + user_create_time +
                ", user_dead_line=" + user_dead_line +
                ", user_deposit=" + user_deposit +
                ", user_ID_number='" + user_ID_number + '\'' +
                ", free_time=" + free_time +
                '}';
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public int getUser_status() {
        return user_status;
    }

    public void setUser_status(int user_status) {
        this.user_status = user_status;
    }

    public String getUser_avatar() {
        return user_avatar;
    }

    public void setUser_avatar(String user_avatar) {
        this.user_avatar = user_avatar;
    }

    public String getUser_sex() {
        return user_sex;
    }

    public void setUser_sex(String user_sex) {
        this.user_sex = user_sex;
    }

    public Timestamp getUser_create_time() {
        return user_create_time;
    }

    public void setUser_create_time(Timestamp user_create_time) {
        this.user_create_time = user_create_time;
    }

    public Timestamp getUser_dead_line() {
        return user_dead_line;
    }

    public void setUser_dead_line(Timestamp user_dead_line) {
        this.user_dead_line = user_dead_line;
    }

    public double getUser_deposit() {
        return user_deposit;
    }

    public void setUser_deposit(double user_deposit) {
        this.user_deposit = user_deposit;
    }

    public String getUser_ID_number() {
        return user_ID_number;
    }

    public void setUser_ID_number(String user_ID_number) {
        this.user_ID_number = user_ID_number;
    }

    public int getFree_time() {
        return free_time;
    }

    public void setFree_time(int free_time) {
        this.free_time = free_time;
    }
}
